import {Service, util} from "adajs";
import User from "./../../../lib/user";

class CourseshowService extends Service {
    defaultData() {
        return {
            links: [
                {name: "教学剪影", link: `/${User.isAdmin() ? 'admin' : 'my'}/course/show`,image:"jy"},
                {name: "学员风采", link: `/${User.isAdmin() ? 'admin' : 'my'}/course/school`,image:"fc"},
                {name: "作品展示", link: `/${User.isAdmin() ? 'admin' : 'my'}/course/works`,image:"zp"}
            ]
        };
    }

    onupdate(current, data) {
        return util.extend(current, data);
    }
}

export default CourseshowService;